import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

import 'discovery_item.dart';

class ATHDiscoveryBody extends StatefulWidget {
  @override
  _ATHDiscoveryBodyState createState() => _ATHDiscoveryBodyState();
}

class _ATHDiscoveryBodyState extends State<ATHDiscoveryBody> {
  @override
  Widget build(BuildContext context) {
    return EasyRefresh.custom(
      header: PhoenixHeader(),
      onRefresh: () async {},
      slivers: [
        SliverList(
            delegate: SliverChildBuilderDelegate((ctx, index) {
          return ATHDiscoveryItem();
        }, childCount: 10))
      ],
    );
  }
}
